package io;

import java.io.FileInputStream;
import java.io.IOException;

public class ReadStringDemo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./f1.txt");
        byte[] data=new byte[fis.available()];
        int len=fis.read(data);
        String str=new String(data, 0, len);
        System.out.println(str);
        fis.close();
    }
}
